package template.demo1;

/**
 * 抽象模板类.
 *
 * @author GongXincheng
 * @since 2019-09-17 20:07
 */
abstract class AbstractClass {

    abstract void operation1();

    abstract void operation2();

    void templateMethod() {
        operation1();
        operation2();
        System.out.println("execute templateMethod success !");
    }

}
